package com.yh.csx.crm.dao;

import com.yh.csx.crm.po.ApprovalAndCustomerSnapshot;
import com.yh.csx.crm.po.ApprovalCompleted;
import com.yh.csx.crm.qo.ApprovalListQo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApprovalCompletedMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ApprovalCompleted record);

    int insertSelective(ApprovalCompleted record);

    ApprovalCompleted selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ApprovalCompleted record);

    int updateByPrimaryKey(ApprovalCompleted record);

    List<ApprovalAndCustomerSnapshot> selectByExample(ApprovalListQo qo);

    ApprovalCompleted selectByApprovalIdAndNode(@Param("approvalId") Long approvalId, @Param("nodeCode") String nodeCode);

    List<ApprovalCompleted> selectByApprovalId(Long approvalId);

}